package com.ferry.transport.api.channel;

/**
 * Created by daiyong
 */
public class CloseFutureListener implements FutureListener<WrappedChannel> {
	@Override
	public void success(WrappedChannel wrappedChannel) throws Exception {
		wrappedChannel.close();
	}

	@Override
	public void failure(WrappedChannel wrappedChannel, Throwable cause) throws Exception {
		wrappedChannel.close();
	}
}
